﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 应聘申请增加笔试体检培训字段 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "PhysicalExamRemark",
                table: "SysPerson",
                type: "nvarchar(256)",
                maxLength: 256,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "PhysicalExamResult",
                table: "SysPerson",
                type: "nvarchar(128)",
                maxLength: 128,
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "PhysicalExamTime",
                table: "SysPerson",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "PreJobTrainingEndTime",
                table: "SysPerson",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "PreJobTrainingStartTime",
                table: "SysPerson",
                type: "datetime2",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TrainingComment",
                table: "SysPerson",
                type: "nvarchar(256)",
                maxLength: 256,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "TrainingResult",
                table: "SysPerson",
                type: "nvarchar(128)",
                maxLength: 128,
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "WrittenTestResult",
                table: "SysPerson",
                type: "nvarchar(128)",
                maxLength: 128,
                nullable: true);

            migrationBuilder.AddColumn<decimal>(
                name: "WrittenTestScore",
                table: "SysPerson",
                type: "decimal(5,2)",
                nullable: true);

            migrationBuilder.AddColumn<DateTime>(
                name: "WrittenTestTime",
                table: "SysPerson",
                type: "datetime2",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "PhysicalExamRemark",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "PhysicalExamResult",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "PhysicalExamTime",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "PreJobTrainingEndTime",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "PreJobTrainingStartTime",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "TrainingComment",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "TrainingResult",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "WrittenTestResult",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "WrittenTestScore",
                table: "SysPerson");

            migrationBuilder.DropColumn(
                name: "WrittenTestTime",
                table: "SysPerson");
        }
    }
}
